let formatError = (ctx, err, costTime) => {
    let method = ctx.method;
    let url = ctx.url;
    return JSON.stringify({ method, url, costTime, err });
}
let formatRes = (ctx, costTime) => {
    let method = ctx.method;
    let url = ctx.url;
    let body = ctx.request.body;
    let response = ctx.response;
    return JSON.stringify({ method, url, body, costTime });
}
module.exports = { formatError, formatRes };